{if $smarty.template_object instanceof \Smarty\Template}okay{/if}